/*
 * @Description:
 * @version:
 * @Author: sunqian_sr
 * @Date: 2023-01-05 21:25:31
 * @LastEditors: Andy
 * @LastEditTime: 2023-03-25 18:44:58
 */
const InvoiceNotice = () => import('@/modules/financialSynergy/views/invoiceNotice.vue')
const UpDataInvoiceNotice = () => import('@/modules/financialSynergy/components/invoiceNoticeAdd.vue')
const InvoiceNoticeInfo = () => import('@/modules/financialSynergy/components/invoiceNoticeInfo.vue')
const StatementAccount = () => import('@/modules/financialSynergy/views/statementAccount.vue')
const StatementAccountAdd = () => import('@/modules/financialSynergy/components/statementAccountAdd.vue')
const StatementAccountDetail = () => import('@/modules/financialSynergy/components/statementAccountDetail.vue')
const StatementAccountEdit = () => import('@/modules/financialSynergy/components/statementAccountAdd.vue')
const paymentApplication = () => import('@/modules/financialSynergy/views/paymentApplication.vue')
const paymentApplicationDetail = () => import('@/modules/financialSynergy/components/paymentApplicationDetail.vue')

const parentRouter = [
  {
    label: '财务协同',
    path: ''
  }
]
const routes = [
  {
    path: '/financialSynergy/invoiceNotice',
    name: 'invoiceNotice',
    meta: {
      title: '开票通知',
      parentTitle: parentRouter
    },
    component: InvoiceNotice
  },
  {
    path: '/financialSynergy/addInvoiceNotice',
    name: 'addInvoiceNotice',
    meta: {
      title: '新增开票通知',
      parentTitle: [...parentRouter, { label: '发票通知', path: '/financialSynergy' }]
    },
    component: UpDataInvoiceNotice
  },
  {
    path: '/financialSynergy/editInvoiceNotice',
    name: 'editInvoiceNotice',
    meta: {
      title: '修改开票通知',
      parentTitle: [...parentRouter, { label: '发票通知', path: '/financialSynergy' }]
    },
    component: UpDataInvoiceNotice
  },
  {
    path: '/financialSynergy/invoiceNoticeInfo',
    name: 'InvoiceNoticeInfo',
    meta: {
      title: '开票通知详情',
      parentTitle: [...parentRouter, { label: '发票通知', path: '/financialSynergy' }]
    },
    component: InvoiceNoticeInfo
  },
  {
    path: '/financialSynergy/invoiceNoticeConfirm',
    name: 'invoiceNoticeConfirm',
    meta: {
      title: '供应商发票确认',
      parentTitle: [...parentRouter, { label: '发票通知', path: '/financialSynergy' }]
    },
    component: InvoiceNoticeInfo
  },
  {
    path: '/financialSynergy/invoiceNoticeCollect',
    name: 'invoiceNoticeCollect',
    meta: {
      title: '供应商发票接收',
      parentTitle: [...parentRouter, { label: '发票通知', path: '/financialSynergy' }]
    },
    component: InvoiceNoticeInfo
  },
  {
    path: '/financialSynergy/statementAccount',
    name: 'statementAccount',
    meta: {
      title: '对账单',
      parentTitle: parentRouter
    },
    component: StatementAccount
  },
  {
    path: '/financialSynergy/statementAccount/add',
    name: 'statementAccountAdd',
    meta: {
      title: '对账单新增',
      parentTitle: parentRouter
    },
    component: StatementAccountAdd
  },
  {
    path: '/financialSynergy/statementAccount/edit',
    name: 'statementAccountEdit',
    meta: {
      title: '对账单修改',
      parentTitle: parentRouter
    },
    component: StatementAccountEdit
  },
  {
    path: '/financialSynergy/statementAccount/detail',
    name: 'statementAccountDetail',
    meta: {
      title: '对账单详情',
      parentTitle: parentRouter
    },
    component: StatementAccountDetail
  },
  {
    path: '/financialSynergy/paymentApplication',
    name: 'paymentApplication',
    meta: {
      title: '付款申请',
      parentTitle: parentRouter
    },
    component: paymentApplication
  },
  {
    path: '/financialSynergy/paymentApplication/detail',
    name: 'paymentApplicationDetail',
    meta: {
      title: '付款申请详情',
      parentTitle: parentRouter
    },
    component: paymentApplicationDetail
  }
]
export default routes
